package com.base.cn.platform.os.controller.statistics.goods;

import com.base.cn.platform.os.common.controller.BaseController;
import com.base.cn.platform.os.common.utils.result.ResultUtil;
import com.base.cn.platform.os.entity.statistics.goods.ZStatisticsSubjectStudyUVCount;
import com.base.cn.platform.os.service.statistics.goods.ZStatisticsSubjectStudyUVCountBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 专业每天学习UV统计Controller
 *
 * @author s.li
 * @date 2019/04/25
 */
@RestController
@RequestMapping("/manage/statistics")
public class ZStatisticsSubjectStudyUVCountController extends BaseController {

    @Autowired
    private ZStatisticsSubjectStudyUVCountBiz zStatisticsSubjectStudyUVCountBiz;

    /**
     * 生成专业学习UV统计记录
     * @param subjectStudyUVCountList 数据列表
     * @return Map<String,Object>
     */
    @RequestMapping("/genSubjectStudyUVCount")
    public Map<String,Object> genSubjectStudyUVCount(@RequestBody List< ZStatisticsSubjectStudyUVCount > subjectStudyUVCountList){
        zStatisticsSubjectStudyUVCountBiz.genSubjectStudyUVCount(subjectStudyUVCountList);
        return ResultUtil.SUCCESS();
    }
}
